﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CApC3DAttachmentManager
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll


namespace DnProcessSimulateCommands;

internal abstract class CApC3DAttachmentManager
{
  private CApC3DRootNodeData m_root;

  internal CApC3DAttachmentManager(CApC3DRootNodeData root) => this.m_root = root;

  internal CApC3DRootNodeData Root => this.m_root;

  internal abstract void Initialize();

  internal abstract bool DoesHave3D { get; }

  internal abstract void Set3D(
    string newU3DFile,
    string newJSFile,
    string newViewDataFile,
    string newViewNodesFile);

  protected void InitializeReader(string path)
  {
    this.Root.DataReader = new CApDataFileReader(path);
    if (this.Root.DataReader.Initialize())
      return;
    this.Root.DataReader = (CApDataFileReader) null;
  }
}
